<div id="bingkaiforumatas"> 
	<div id="bingkiri">
		<div id="alamat2">Profile:</div>
		<h1 class="heading1"><?php echo $this->session->userdata('nama'); ?></h1>
		<div id="alamat">Presence</div>
	</div>
	<div class="clear"></div>
</div>
<div id="bingkaiforum">
	<div id="puma">
            <?php
                echo $this->load->view("portal/profile_nav");
            ?>
	</div>
	<div class="clear"></div>
	<div>
			<img id="b3" src="<?php echo $this->session->userdata('foto'); ?>">
			<table border="0" cellspacing="0" cellpadding="0" id="b4">
            <?php  foreach ($courses as $row) { ?>
              <tr>
                <td class="b2"><span class="hpa"><?php echo $row['KODE_PELATIHAN'].'-'.$row['ANGKATAN']; ?></span>  <?php echo $row['nama_pelatihan'] ?></td>
              </tr>
			  <tr>
                <td>
					<table border="0" cellspacing="0" cellpadding="0" class="absen">
					<tr>
						<td colspan="2">Sesi ke</td>
                                                <?php for($i=0;$i<$row['total_kelas_sesi'];$i++){?>
                                                <td><a class="tedeabsen" href="#"><?php echo ($i+1)?></a></td>
                                                <?php }?>
					</tr>
					<tr>
						<td>Kehadiran</td>
						<td>98%</td>
                                                <?php for($j=1;$j<=$row['total_kelas_sesi'];$j++){?>
                                                <td class="masuk">
                                                    <?php echo $row['hadir'][$j]?>
                                                </td>
                                                <?php }?>
					</tr>
					</table>
				
				
				</td>
              </tr>
            <?php } ?>
                            
            </table>
				<div class="clear"></div>
	</div>
</div>